package com.weixing.mall.provider.api.model.dto;

import com.weixing.mall.provider.api.model.vo.ProductEsVo;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;
import java.util.List;

/**
 * @Author: kfc
 * @Description: <br/>
 * Date:Create in 2019/10/9 17:06
 * @Modified By:
 */
@Data
@Document(indexName = "goods", type = "searchItem")
public class SearchItem implements Serializable {
    /**
     * 商品id
     * */
    @Id
    private long id;

    /**
     * 类目id
     */
    private long categoryId;
    /**
     * 类目名称
     */
    private String category;

    /**
     * 品牌id
     */
    private long  brandId;

    /**
     * 品牌
     */
    private String brand;

    /**
     * 商品名称
     */
    private String goodsName;

    /**
     * 价格
     */
    private List<Double> price;
    /**
     * 商品图片
     */
    private String imgs;
    /**
     * 商品场景
     */
    private String scenes;

    /**
     * SKU
     */
//    @Field(type = FieldType.Keyword, index = false)
    private List<ProductEsVo> skus;
}
